<%@page import="com.grep.base.util.PinYin4jUtil"%>
<%@page import="com.grep.extra.dao.impl.ContentParseFieldDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String id = request.getParameter("id");
	String fieldname = request.getParameter("fieldname");
	String startfield = request.getParameter("startfield");
	String endfield = request.getParameter("endfield");
	String fileldtablename = PinYin4jUtil.getPinyin(fieldname);
	
	String updatesql = "update content_parse_field set field_name='"+fieldname+"',start_regex='"+startfield+"',end_regex='"+endfield+"',fileld_tablename='"+fileldtablename+"'where id='"+id+"'";
	
	
	ContentParseFieldDao cpfd = new ContentParseFieldDao(); 
	
	boolean issuccess = cpfd.modificContParseField(updatesql);
	if (issuccess) {
		response.getWriter().println("任务指标修改成功");
	}else{
		response.getWriter().println("任务指标修改失败");
	}
	
	
%>